package org.altervista.cp.microkernel.persistence;

public interface PersistenceSession {

	<T> PersistenceQuery<T> createQuery(Class<T> c, Object... queryDef);

	void close();

	void commit();

	void rollback();

	void insert(Object o);

	<T> T load(Class<T> c, Object... id);

	<T> T[] loadAll(Class<T> c);

	void remove(Object o);

	void update(Object o);

}
